ReadMe.txt

To accompany "Replication Data for: Voters and Donors: The Unequal Political
Consequences of Fracking"

January 12, 2021

********************************************************************************
* Contents
********************************************************************************

I. Description of Included Files

II. Required Software and Packages

III. Basic Procedure to Replicate Figures and Tables

********************************************************************************
* I. Description of Included Files
********************************************************************************

dataset_candidates_house.dta - Used by tableA12.do, tableA13.do.

dataset_candidates_state.dta - Used by tableA14.do.

dataset_coords_counties.dta - Used by figure2.do.

dataset_coords_zipcodes.dta - Used by figureA4.do.

dataset_county.dta - Used by figure1.do, figure2.do, figureA2.do, table1.do,
	table4.do.
	
dataset_donors.dta - Used by figure3.do, figure4b.do, table3.do, tableA1.do,
	tableA2.do, tableA4.do, tableA5.do, tableA6.do, tableA7.do, tableA8.do,
	tableA11.do, tableA17.do.
	
dataset_donors_agg.dta - Used by figureA2.do.

dataset_state_outlines.dta - Used by figureA4.do.

dataset_voters.dta - Used by figure3.do, figure4a.do, table2.do, tableA1.do,
	tableA2.do, tableA3.do, tableA5.do, tableA6.do, tableA7.do, tableA8.do, 
	tableA9.do, tableA10.do, tableA16.do.
	
dataset_zipcode.dta - Used by figureA4.do.
	
ReadMe.txt - This file.

_code/replicate.do - This .do file will recreate all figures and tables. It will
	take some time to run. This file also creates a log file, "replication.log."

_code/table*.do - In general, each file generates a particular table from the 
	main text or appendix. For instance, table1.do generates Table 1.

_code/figure*.do - In general, each file generates a particular figure from the
	main text or appendix. For instance, figure1.do generates Figure 1.

********************************************************************************
* II. Required Software and Packages
********************************************************************************

The analysis was conducted using Stata/SE 15.1. In addition to the base
commands, the following add-on packages are required.

	spmap - Used for creating maps. Used by figure2.do and figureA4.do.

	tsls - Used for fixed effects instrumental variables estimation. Used by 
		tableA3.do and tableA4.do

To install spmap, run:

	ssc install spmap	

To install the "tsls" package, run these commands:

	net from "http://www.nber.org/stata"
	net install tsls
	
Table files are saved as .tex (LaTeX) documents.
	
********************************************************************************
* III. Basic Procedure to Replicate Figures and Tables
********************************************************************************

First, download all files in this replication archive. Make note of the 
	directory you save the files to. For the purposes of this guide, we will
	call this directory "dataverse".
	
Second, open Stata and ensure you have installed the necessary add-on packages 
	(see Section II. above).
	
Third, set the Stata working directory to "dataverse" (see the first step).

Fourt, create a new directory, "_output", under the top "dataverse" directory.
	This is where figure and table output files will be stored.

Fifth, to replicate all figures and tables, open and run the "replicate.do". To 
	replicate a particular figure/table only, open and run "figureX.do"/
	"tableX.do", where X is the number of the figure/table you seek to
	replicate.
